;$(function () {
    layui.use(['form', 'table'], function () {
        let form = layui.form,
            table = layui.table;
        table.render({
            elem: '#logInfoTable'
            , url: "getLogInfo"
            , method: "post"
            , response: {
                statusCode: true
            }
            , defaultToolbar: []
            , cellMinWidth: 80
            , cols: [[
                {field: 'sorts', title: '序号', templet: '#sort', width: 58, align: 'center'}
                , {field: 'username', title: '操作人', align: 'center',}
                , {field: 'userAccountNumber', title: '操作账号', align: 'center'}
                , {field: 'operation', title: '操作内容', align: 'center'}
                , {
                    field: 'time', title: '响应时间', align: 'center',
                    templet: function (d) {
                        return '<span>' + d.time + 'ms</span>'
                    }
                },
                {field: 'method', title: '请求方法', align: 'center'}
                , {field: 'ip', title: '请求IP', align: 'center'}
                , {field: 'gmtCreate', title: '记录时间', align: 'center'}

            ]],
            id: "logInfoRender"
            , page: true
        });
    });

});